--- import CowSay from "@components/blog/CowSay.astro"; import Layout from "@layouts/Layout.astro"; import { type CollectionEntry, getCollection, render } from "astro:content"; export const getStaticPaths = async () => { const posts = await getCollection("posts"); return posts.map((entry) => ({ params: { slug: entry.id }, props: { entry } })); }; const { entry } = Astro.props as { entry: CollectionEntry<"posts"> }; const { Content, headings } = await render(entry); ---

{entry.data.title}